.gallery {
  margin: 47px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, 282px);
  column-gap: 17px;
  row-gap: 20px;
  justify-content: center;
}

@media screen and (max-width: 780px) {
  .gallery {
    margin-top: 36px;
  }
}
